forum

home / developersection / forums / c# read file info from url

C# Read file info from URL

Anonymous User 5791 02-Dec-2014

In my ASP.NET MVC application I'm reading an external file from URL and saving it into a directory on my server. I do this in a loop for every few seconds to have actual data if the file was modified.

 

What I need is to recognize that the LastWrittenTime of the file accessed via the URL is different from file already downloaded to the server. I cannot use FileInfo class because "URI formats are not supported".

 

So how do I get the last written time of the file from the URL without needing to download the full file for every loop?


c# c# 
Updated on 18-Apr-2019

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By